<%-- 
    Document   : edit-professor
    Created on : 13/06/2013, 14:51:10
    Author     : Eduardo
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="Model.*"%>
<%@page import="Controller.*"%>
<%@page import="java.sql.*" %> 
<%@page import="java.io.*" %>

<%
    String id = request.getParameter("id");
    Query q = new Query();
    Disciplina rs = q.getDisc(id);
%>

<div class="modal-header">  
    <a class="close" data-dismiss="modal">×</a>  
    <h3>Visualizando: <% out.println(rs.getCod());%></h3>
</div>
<div class="modal-body">
    <div id="info"></div>
    <div class="tabbable">
        <ul class="nav nav-tabs">
            <li class="active"><a href="#tab1" data-toggle="tab">Dados</a></li>
            <li><a href="#tab2" data-toggle="tab">Professores aptos</a></li>
        </ul>
        <div class="tab-content">
            <div class="tab-pane active" id="tab1">
                <dl class="dl-horizontal">
                    <dt>Codigo:</dt>
                    <dd><% out.println(rs.getCod());%></dd>
                    <dt>Nome:</dt>
                    <dd><% out.println(rs.getNome());%></dd>
                    <dt>Carga hoaraia:</dt>
                    <dd><% out.println(rs.getCargahoraria());%></dd>
                    <dt>Creditos:</dt>
                    <dd><% out.println(rs.getCredito());%></dd>
                    <dt>Resumo:</dt>
                    <dd><% out.println(rs.getResumo());%></dd>                    
                </dl>
            </div>
            <div class="tab-pane" id="tab2">
                <p>Ainda não implementado.</p>
            </div>
        </div>
    </div>

</div>
<div class="modal-footer">
    <a class="btn btn-inverse fechar" data-dismiss="modal">Fechar</a>  
</div>
